From 6eae10ab535e20048e1b7e754a0011cb312a6eb2 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 31 Oct 2005 16:54:05 +0100 Subject: [PATCH] Removed some dead code. Signed-off-by: Ewan Mellor --- tools/python/xen/web/connection.py | 3 --- tools/python/xen/web/tcp.py | 6 ------ tools/python/xen/web/unix.py | 3 --- 3 files changed, 12 deletions(-) diff --git a/tools/python/xen/web/connection.py b/tools/python/xen/web/connection.py index 9c526bd341..7019ca446f 100644 --- a/tools/python/xen/web/connection.py +++ b/tools/python/xen/web/connection.py @@ -380,9 +380,6 @@ class SocketConnector: self.state = "disconnected" self.transport = None - def getDestination(self): - raise NotImplementedError() - def connectTransport(self): raise NotImplementedError() diff --git a/tools/python/xen/web/tcp.py b/tools/python/xen/web/tcp.py index 743fd6daf3..293e9876d8 100644 --- a/tools/python/xen/web/tcp.py +++ b/tools/python/xen/web/tcp.py @@ -85,9 +85,6 @@ class TCPConnector(SocketConnector): raise IOError("unknown service: " + ex) return port - def getDestination(self): - return (self.host, self.port) - def connectTransport(self): self.transport = TCPClientConnection( self.host, self.port, self.bindAddress, self) @@ -98,9 +95,6 @@ def listenTCP(port, factory, interface='', backlog=None): l.startListening() return l -def SetCloExec(SocketListener): - SocketListener.setCloExec() - def connectTCP(host, port, factory, timeout=None, bindAddress=None): c = TCPConnector(host, port, factory, timeout=timeout, bindAddress=bindAddress) c.connect() diff --git a/tools/python/xen/web/unix.py b/tools/python/xen/web/unix.py index 2239393309..87aadebd83 100644 --- a/tools/python/xen/web/unix.py +++ b/tools/python/xen/web/unix.py @@ -67,9 +67,6 @@ class UnixConnector(SocketConnector): self.addr = path self.timeout = timeout - def getDestination(self): - return self.addr - def connectTransport(self): self.transport = UnixClientConnection(self.addr, self) self.transport.connect(self.timeout) -- 2.30.2